import { createPinia } from "pinia"
import piniaPluginPersistedstate from "pinia-plugin-persistedstate" // 插件 pinia-plugin-persistedstate 可以辅助实现数据持久化功能
import { roleStore } from '@/store/role';

const appStore: any = createPinia()
appStore.use(piniaPluginPersistedstate)

/**
 * 注册app状态库
 */
 export const registerStore = () => {
  appStore.roleStore = roleStore();
};

export default appStore;